import com.chazaqdev.meatbagsorter.MonitorFolder;

class BootStrap {
	def monitorFolderService
    def init = { servletContext ->
		for (MonitorFolder mf in MonitorFolder.list()) {
				monitorFolderService.startRunningFileMonitor(mf, servletContext.getRealPath ('/'))
		}
    }
    def destroy = {
    }
}
